package com.wenjoying.user.service.impl;

import com.wenjoying.user.message.Producer;
import com.wenjoying.user.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private Producer producer;

    @Override
    public void sendMsg(String str) {
        producer.publish(str);
    }
}
